const config = {
  id: 'aqiValue',
  title: '空气质量',
  icon: require('../images/aqiValue.png'),
  // subtitle:'辅助说明',
  dataType: 'json', //是否从json拉取数据绘制图层 原yearbook分类   //若不需要拉取数据 为service
  displayType: 'featureLayer', //migrateEchartLayer featureLayer
  // 若需通过json生成图层
  uniqueKey:'regionName',
  fieldJsonArray: [
    { name: 'OBJECTID', alias: 'ObjectID', type: 'oid' },
    { name: 'regionName', alias: 'regionName', type: 'string' },
    { name: 'regionCode', alias: 'regionCode', type: 'string' },
    { name: 'aqiValue', alias: 'aqiValue', type: 'double' },
    { name: 'pm25Value', alias: 'pm25Value', type: 'double' },
    { name: 'pm10Value', alias: 'pm10Value', type: 'double' },
    { name: 'coValue', alias: 'coValue', type: 'double' },
    { name: 'no2Value', alias: 'no2Value', type: 'double' },
    { name: 'o3Value', alias: 'o3Value', type: 'double' },
    { name: 'so2Value', alias: 'so2Value', type: 'double' },
    { name: 'quality', alias: 'quality', type: 'string' },
    { name: 'primarypollutant', alias: 'primarypollutant', type: 'string' },
    { name: 'timepoint', alias: 'timepoint', type: 'string' }
  ],
  // 场景参数
  initCamera: {
    heading: 0,
    tilt: 0.363,
    fov: 55,
    position: {
      latitude: 30.8,
      longitude: 119.34,
      z: 2406952,
    },
  },
  //底图
  basemapTitle: '深色底图',
  // 右侧面板显示参数
  hasTable: false,
  hasChart: false,
  hasDataInfo: false,
  // 年鉴数据为false 港口等需要通过数据库数据生成点时为true
  hasGeometryData: false,
  //是否打开图例
  hasLegend: true,
  // service图层
  serviceLayer: [],
  definitionExpression: "",
  //数据级别
  selectedDataLevel: '', //630100
  // 是否有时间轴  时间轴是否显示由timeSeries 决定
  hasTimeLine: false,
  unit:'',
  initTime: '',
  timeSeries: [],
  hoverEnabled: true,
  geometryType: 'polygon',
  rendererJson: {
    type: 'classBreaks',
    authoringInfo: {
      type: 'classedColor',
      classificationMethod: 'esriClassifyNaturalBreaks',
    },
    field: 'aqiValue',
    legendOptions:{
      title: "AQI指数"
    },
    classificationMethod: 'esriClassifyNaturalBreaks',
    minValue: 0,
    classBreakInfos: [
      {
        symbol: {
          type: 'esriSFS',
          style: 'esriSFSSolid',
          color: [0, 255, 0, 255],
          outline: {
            type: 'esriSLS',
            style: 'esriSLSSolid',
            color: [50, 50, 50, 200],
            width: 0.2,
          },
        },
        classMaxValue: 50,
        label: '0-50(优)',
      },
      {
        symbol: {
          type: 'esriSFS',
          style: 'esriSFSSolid',
          color: [255, 255, 0, 255],
          outline: {
            type: 'esriSLS',
            style: 'esriSLSSolid',
            color: [50, 50, 50, 200],
            width: 0.2,
          },
        },
        classMaxValue: 100,
        label: '51-100(良)',
      },
      {
        symbol: {
          type: 'esriSFS',
          style: 'esriSFSSolid',
          color: [255, 165, 0, 255],
          outline: {
            type: 'esriSLS',
            style: 'esriSLSSolid',
            color: [50, 50, 50, 200],
            width: 0.2,
          },
        },
        classMaxValue: 150,
        label: '101-150(轻度污染)',
      },
      {
        symbol: {
          type: 'esriSFS',
          style: 'esriSFSSolid',
          color: [255, 0, 0, 255],
          outline: {
            type: 'esriSLS',
            style: 'esriSLSSolid',
            color: [50, 50, 50, 200],
            width: 0.2,
          },
        },
        classMaxValue: 200,
        label: '151-200(中度污染)',
      },
      {
        symbol: {
          type: 'esriSFS',
          style: 'esriSFSSolid',
          color: [186, 85, 211, 255],
          outline: {
            type: 'esriSLS',
            style: 'esriSLSSolid',
            color: [50, 50, 50, 200],
            width: 0.2,
          },
        },
        classMaxValue: 300,
        label: '201-300(重度污染)',
      },
      {
        symbol: {
          type: 'esriSFS',
          style: 'esriSFSSolid',
          color: [128, 0, 128, 255],
          outline: {
            type: 'esriSLS',
            style: 'esriSLSSolid',
            color: [50, 50, 50, 200],
            width: 0.2,
          },
        },
        classMaxValue: 400,
        label: '>300(严重污染)',
      }
    ],
  },
};
export default config;
